'''
Created on 23/09/2012

@author: Charles
'''
import unittest
from Container import *

class Test(unittest.TestCase):


    def setUp(self):
        self.container = Container("test", "New", "Nothing", "Otherwise", "filler")
        
    def tearDown(self):
        pass


    def testContainer(self):
        self.assertTrue(self.container.getMapping() == "test")
        self.assertTrue(self.container.getId() == "Otherwise", "Failure value is {0}".format(self.container.getId()))
        self.assertTrue(self.container.getSubtree() == None, "Failure value is {0}".format(self.container.getSubtree()))


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()